﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace FGK
{
    class Material
    {
        private Kolor kolor;
        private Kolor diffuse;
        private Kolor specular;
        private float specularKoef;
        private Bitmap bit;
        private float lustro;
        private float szklo;

        public float Lustro
        {
            set { lustro = value; }
            get { return lustro; }
        }
        public float Szklo
        {
            set { szklo = value; }
            get { return szklo; }
        }


        public float SpecularKoef
        {
            set { specularKoef = value; }
            get { return specularKoef; }
        }

        public Bitmap Bit
        {
            set { bit = value; }
            get { return bit; }
        }

        public Kolor Diffuse
        {
            get { return diffuse; }
            set { diffuse = value; }
        }

        public Kolor Specular
        {
            get { return specular; }
            set { specular = value; }
        }

        public Material()
        {
            kolor = new Kolor();
            diffuse = new Kolor();
            specular = new Kolor();
            lustro = 0.0f;
            szklo = 1.0f;
        }

        public Material(Kolor k)
        {
            kolor = k;
            lustro = 0.0f;
            szklo = 1.0f;
        }

        public Material(float r, float g, float b)
        {
            kolor = new Kolor(r, g, b);
            lustro = 0.0f;
            szklo = 1.0f;
            //diffuse = new Kolor(r, g, b);
            //specular = new Kolor(r, g, b);
        }

        public Kolor Kolor
        {
            set { kolor = value; }
            get { return kolor; }
        }

        public void setBit(String s)
        {
            bit = new Bitmap(s);
        }

    }
}
